﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace ARCam3D
{
    public static class Utils
    {
        public static int GetModulo(int divident, int divisor)
        {
            int result = divident % divisor;
            if (result >= 0)
            {
                return result;
            }
            else
            {
                return divisor + result;
            }
        }

        [DllImport("ntdll.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "memcpy")]
        public static extern int Copy(IntPtr destination, IntPtr source, int count);
    }
}
